package com.csl.ws.hotel.sei;

import javax.annotation.Resource;
import javax.jws.WebService;

import com.csl.ws.hotel.service.HandlerService;
import com.csl.ws.hotel.service.HandlerServiceImpl;

@WebService(endpointInterface="com.csl.ws.hotel.sei.JwUpServer")
public class JwUpServerImpl implements JwUpServer {
	@Resource
	private HandlerService handlerService;
	
	public void setHandlerService(HandlerService handlerService) {
		this.handlerService = handlerService;
	}
	
	/**
	 * 处理境外旅客入住信息上传
	 * @param jwstr
	 * @return
	 */
	@Override
	public String handJIinfo(String jwstr) {
		String jiresult=handlerService.handleJIinfo(jwstr);
		return jiresult;
	}
	
	/**
	 * 处理境外旅客退宿信息上传
	 * @param jwstr
	 * @return
	 */
	@Override
	public String handJCinfo(String jcstr) {
		handlerService=new HandlerServiceImpl();
		String jcresult=handlerService.handleJCinfo(jcstr);
		return jcresult;
	}
}
